package com.liangsui.mss.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liangsui.mss.domain.Menu;
import com.liangsui.mss.domain.SimpleUser;
import com.liangsui.mss.dto.MenuDto;

import java.util.List;
import java.util.Map;

/**
* @author zhang
* @description 针对表【sys_menu(菜单权限表)】的数据库操作Service
* @createDate 2022-12-04 14:30:19
*/
public interface MenuService extends IService<Menu> {

    List<Menu> listAllMenus(MenuDto menuDto);

    Menu getMenuById(Integer id);

    List<Long> getMenuIdsByRoleId(Long roleId);

    int addMenu(MenuDto menuDto);

    int updateMenu(MenuDto menuDto);

    boolean hasChilenByMenuID(Long menuid);

    int deleteMenuById(Long menuid);

    List<Menu> selectMenuTree(boolean isAdmin, SimpleUser simpleUser);

    public List<Map<String, Object>> dynamicMenu();
}
